package gui.polish;

import gui.mpm.MPMFrame;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GradientPaint;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Toolkit;

import javax.swing.JFrame;

import java.awt.SystemColor;

import javax.swing.UIManager;
/**
 * 
 * @author adam
 *This frame initializes the search panel .
 */
public class StartNewPolishSerachFrame extends JFrame {
	
	private StartNewPolishSerachFrame mySearchFrame;
	private PolishFrame myPolishframe;
	private OrderIDSearchPanel myOrderIDSerchPanel;
	private Dimension dim;
	
/**
 * 	Constructor
 * @param a-myPolishframe
 */
	public StartNewPolishSerachFrame(PolishFrame a) {
		
		this.myPolishframe=a;
		mySearchFrame=this;
		setIconImage(Toolkit.getDefaultToolkit().getImage(MPMFrame.class.getResource("/graphics/Spearhead.png")));
    	setTitle("ח.נ.י.ת");
    	getContentPane().setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
    	this.setLocation(myPolishframe.getLocation());
    	myOrderIDSerchPanel = new OrderIDSearchPanel(mySearchFrame);
    	myOrderIDSerchPanel.setBackground(UIManager.getColor("InternalFrame.activeTitleBackground"));
    	mySearchFrame.setContentPane(myOrderIDSerchPanel);
    	mySearchFrame.setExtendedState(JFrame.MAXIMIZED_BOTH);
    	mySearchFrame.setLocation(myPolishframe.getX()+50,myPolishframe.getY()+50);
    	mySearchFrame.setVisible(true);

	}

	
}
